home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / 16 windows forms / windowsformsdemo / startupform.vb < prev    next >
Encoding:
Text File  |  2002-01-15  |  7.5 KB  |  201 lines

  1. Public Class StartupForm
  2.     Inherits System.Windows.Forms.Form
  3.  
  4. #Region " Windows Form Designer generated code "
  5.  
  6.     Public Sub New()
  7.         MyBase.New()
  8.  
  9.         'This call is required by the Windows Form Designer.
  10.         InitializeComponent()
  11.  
  12.         'Add any initialization after the InitializeComponent() call
  13.  
  14.     End Sub
  15.  
  16.     'Form overrides dispose to clean up the component list.
  17.     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  18.         If disposing Then
  19.             If Not (components Is Nothing) Then
  20.                 components.Dispose()
  21.             End If
  22.         End If
  23.         MyBase.Dispose(disposing)
  24.     End Sub
  25.     Friend WithEvents Button1 As System.Windows.Forms.Button
  26.     Friend WithEvents Button2 As System.Windows.Forms.Button
  27.     Friend WithEvents Button3 As System.Windows.Forms.Button
  28.     Friend WithEvents Button4 As System.Windows.Forms.Button
  29.     Friend WithEvents Button5 As System.Windows.Forms.Button
  30.     Friend WithEvents Button6 As System.Windows.Forms.Button
  31.     Friend WithEvents Button7 As System.Windows.Forms.Button
  32.     Friend WithEvents Button8 As System.Windows.Forms.Button
  33.     Friend WithEvents Button9 As System.Windows.Forms.Button
  34.     Friend WithEvents Button10 As System.Windows.Forms.Button
  35.  
  36.     'Required by the Windows Form Designer
  37.     Private components As System.ComponentModel.Container
  38.  
  39.     'NOTE: The following procedure is required by the Windows Form Designer
  40.     'It can be modified using the Windows Form Designer.  
  41.     'Do not modify it using the code editor.
  42.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  43.         Me.Button8 = New System.Windows.Forms.Button()
  44.         Me.Button9 = New System.Windows.Forms.Button()
  45.         Me.Button4 = New System.Windows.Forms.Button()
  46.         Me.Button5 = New System.Windows.Forms.Button()
  47.         Me.Button6 = New System.Windows.Forms.Button()
  48.         Me.Button7 = New System.Windows.Forms.Button()
  49.         Me.Button1 = New System.Windows.Forms.Button()
  50.         Me.Button2 = New System.Windows.Forms.Button()
  51.         Me.Button3 = New System.Windows.Forms.Button()
  52.         Me.Button10 = New System.Windows.Forms.Button()
  53.         Me.SuspendLayout()
  54.         '
  55.         'Button8
  56.         '
  57.         Me.Button8.Location = New System.Drawing.Point(160, 240)
  58.         Me.Button8.Name = "Button8"
  59.         Me.Button8.Size = New System.Drawing.Size(120, 40)
  60.         Me.Button8.TabIndex = 0
  61.         Me.Button8.Text = "Inherited forms"
  62.         '
  63.         'Button9
  64.         '
  65.         Me.Button9.Location = New System.Drawing.Point(160, 16)
  66.         Me.Button9.Name = "Button9"
  67.         Me.Button9.Size = New System.Drawing.Size(120, 40)
  68.         Me.Button9.TabIndex = 0
  69.         Me.Button9.Text = "Anchor property"
  70.         '
  71.         'Button4
  72.         '
  73.         Me.Button4.Location = New System.Drawing.Point(16, 184)
  74.         Me.Button4.Name = "Button4"
  75.         Me.Button4.Size = New System.Drawing.Size(120, 40)
  76.         Me.Button4.TabIndex = 0
  77.         Me.Button4.Text = "Keyboard and mouse"
  78.         '
  79.         'Button5
  80.         '
  81.         Me.Button5.Location = New System.Drawing.Point(16, 240)
  82.         Me.Button5.Name = "Button5"
  83.         Me.Button5.Size = New System.Drawing.Size(120, 40)
  84.         Me.Button5.TabIndex = 0
  85.         Me.Button5.Text = "Calling forms"
  86.         '
  87.         'Button6
  88.         '
  89.         Me.Button6.Location = New System.Drawing.Point(160, 128)
  90.         Me.Button6.Name = "Button6"
  91.         Me.Button6.Size = New System.Drawing.Size(120, 40)
  92.         Me.Button6.TabIndex = 0
  93.         Me.Button6.Text = "MDI forms"
  94.         '
  95.         'Button7
  96.         '
  97.         Me.Button7.Location = New System.Drawing.Point(160, 184)
  98.         Me.Button7.Name = "Button7"
  99.         Me.Button7.Size = New System.Drawing.Size(120, 40)
  100.         Me.Button7.TabIndex = 0
  101.         Me.Button7.Text = "Menu merging"
  102.         '
  103.         'Button1
  104.         '
  105.         Me.Button1.Location = New System.Drawing.Point(16, 16)
  106.         Me.Button1.Name = "Button1"
  107.         Me.Button1.Size = New System.Drawing.Size(120, 40)
  108.         Me.Button1.TabIndex = 0
  109.         Me.Button1.Text = "Font and colors"
  110.         '
  111.         'Button2
  112.         '
  113.         Me.Button2.Location = New System.Drawing.Point(16, 72)
  114.         Me.Button2.Name = "Button2"
  115.         Me.Button2.Size = New System.Drawing.Size(120, 40)
  116.         Me.Button2.TabIndex = 0
  117.         Me.Button2.Text = "Scrollable forms"
  118.         '
  119.         'Button3
  120.         '
  121.         Me.Button3.Location = New System.Drawing.Point(16, 128)
  122.         Me.Button3.Name = "Button3"
  123.         Me.Button3.Size = New System.Drawing.Size(120, 40)
  124.         Me.Button3.TabIndex = 0
  125.         Me.Button3.Text = "Dialog forms"
  126.         '
  127.         'Button10
  128.         '
  129.         Me.Button10.Location = New System.Drawing.Point(160, 72)
  130.         Me.Button10.Name = "Button10"
  131.         Me.Button10.Size = New System.Drawing.Size(120, 40)
  132.         Me.Button10.TabIndex = 0
  133.         Me.Button10.Text = "Menus"
  134.         '
  135.         'Form1
  136.         '
  137.         Me.AutoScaleBaseSize = New System.Drawing.Size(7, 17)
  138.         Me.ClientSize = New System.Drawing.Size(296, 301)
  139.         Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button6, Me.Button7, Me.Button8, Me.Button9, Me.Button10, Me.Button5, Me.Button4, Me.Button3, Me.Button2, Me.Button1})
  140.         Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 11!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  141.         Me.Name = "Form1"
  142.         Me.Text = "Form1"
  143.         Me.ResumeLayout(False)
  144.  
  145.     End Sub
  146.  
  147. #End Region
  148.  
  149.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  150.         Dim frm As New TextColorFontForm()
  151.         frm.Show()
  152.     End Sub
  153.  
  154.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  155.         Dim frm As New ScrollableForm()
  156.         frm.Show()
  157.     End Sub
  158.  
  159.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  160.         Dim frm As New DialogBaseForm()
  161.         Dim res As DialogResult = frm.ShowDialog()
  162.         MsgBox(res.ToString)
  163.     End Sub
  164.  
  165.     Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  166.         Dim frm As New KeyboardMouseForm()
  167.         frm.Show()
  168.     End Sub
  169.  
  170.     Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
  171.         Dim frm As New CallerForm()
  172.         frm.Show()
  173.     End Sub
  174.  
  175.  
  176.     Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
  177.         Dim frm As New AnchorForm()
  178.         frm.Show()
  179.     End Sub
  180.  
  181.     Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click
  182.         Dim frm As New MenuForm()
  183.         frm.Show()
  184.     End Sub
  185.  
  186.     Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
  187.         Dim frm As New MDIForm()
  188.         frm.Show()
  189.     End Sub
  190.  
  191.     Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
  192.         Dim frm As New MdiMenuMerge()
  193.         frm.Show()
  194.     End Sub
  195.  
  196.     Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
  197.         Dim frm As New DialogInheritedForm()
  198.         frm.ShowDialog()
  199.     End Sub
  200. End Class
  201.